package com.amumu.drama.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

@Getter
@Setter
@TableName(value = "invitation_new_member")
public class InvitationNewMember implements Serializable {

    private static final long serialVersionUID = -5056131486828638068L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 邀请用户id
     */
    @TableField(value = "old_member_id")
    private Long oldMemberId;

    /**
     * 被邀请用户id
     */
    @TableField(value = "new_member_id")
    private Long newMemberId;


    @TableField( value = "create_time",fill = FieldFill.INSERT )
    private LocalDateTime createTime;

    /**
     * 邀请码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 使用状态；0->未使用；1->已使用
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建人
     */
    @TableField(value = "creator")
    private String creator;
}
